using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._ConversionTools._ToGeodatabase
{
    /// <summary>
    /// <para>Import from CAD</para>
    /// <para>Imports from one or more CAD files to a staging geodatabase.</para>
    /// <para>从一个或多个 CAD 文件导入到临时地理数据库。</para>
    /// </summary>    
    [DisplayName("Import from CAD")]
    public class ImportCAD : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public ImportCAD()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_Input_Files">
        /// <para>Input Files</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        /// <param name="_out_personal_gdb">
        /// <para>Output Staging Geodatabase</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        public ImportCAD(List<object> _Input_Files, object _out_personal_gdb)
        {
            this._Input_Files = _Input_Files;
            this._out_personal_gdb = _out_personal_gdb;
        }
        public override string ToolboxName => "Conversion Tools";

        public override string ToolName => "Import from CAD";

        public override string CallName => "conversion.ImportCAD";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_Input_Files, _out_personal_gdb, _spatial_reference, _Explode_Complex.GetGPValue()];

        /// <summary>
        /// <para>Input Files</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Files")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public List<object> _Input_Files { get; set; }


        /// <summary>
        /// <para>Output Staging Geodatabase</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Staging Geodatabase")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_personal_gdb { get; set; }


        /// <summary>
        /// <para>Spatial Reference</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Spatial Reference")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _spatial_reference { get; set; } = null;


        /// <summary>
        /// <para>Explode Complex Objects</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Explode Complex Objects")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _Explode_Complex_value _Explode_Complex { get; set; } = _Explode_Complex_value._false;

        public enum _Explode_Complex_value
        {
            /// <summary>
            /// <para>Explode_Complex</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("Explode_Complex")]
            [GPEnumValue("true")]
            _true,

            /// <summary>
            /// <para>Do_Not_Explode_Complex</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("Do_Not_Explode_Complex")]
            [GPEnumValue("false")]
            _false,

        }

        public ImportCAD SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}